package com.hliushi.bookmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hliushi.bookmanager.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface UserMapper extends BaseMapper<User> {

    User getUserByUsername(String username);

    void changePassword(@Param("username") String username, @Param("newPassword") String newPassword);

    String getPassword(String username);
}
